//
//  ZJNetWorkURLTool.m
//  iosFramework
//
//  Created by Farben on 2020/8/6.
//  Copyright © 2020 Farben. All rights reserved.
//

#import "ZJNetWorkURLTool.h"

#define BASEURL @"http://www."



@interface ZJNetWorkURLTool()


@end

@implementation ZJNetWorkURLTool

static ZJNetWorkURLTool *_sharedSingleton = nil;
+ (instancetype)Share{
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        //不能再使用alloc方法
        //因为已经重写了allocWithZone方法，所以这里要调用父类的分配空间的方法
        _sharedSingleton = [[super allocWithZone:NULL] init];
    });
    return _sharedSingleton;
}

//主页接口
-(NSString*)getMainURL{
    NSString *urlString = [NSString stringWithFormat:@"%@%@",BASEURL,@"baidu.com"];
    NSLog(@"getMainURL : %@",urlString);
    return urlString;
}

@end
